/**
 * 
 */
package org.cuatrovientos.erp.model;

import java.sql.Date;
import java.sql.Timestamp;

import javax.validation.constraints.Past;
import javax.validation.constraints.Size;

/**
 * @author Daniel Lacasta
 *
 */
public class Delegation {
	
	private int id;
	
	@Size(min=1,message="{delegation.name.error}")
	private String name;
	
	@Size(min=1,max=50,message="{delegation.description.error}")
	private String description;
	
	@Size(min=1,max=50,message="{delegation.address.error}")
	private String address;
	
	@Size(min=1,message="{delegation.idcity.error}")
	private int idcity;
	
	public Delegation () {
		
	}

	
	/**
	 * @param id
	 * @param title
	 * @param date
	 * @param message
	 * @param iduser
	 */
	public Delegation(int id, String name, String description, String address, int idcity) {
		this.id = id;
		this.name = name;
		this.description = description;
		this.address = address;
		this.idcity = idcity;
	}


	






	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}


	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}


	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}


	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}


	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}


	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}


	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}


	/**
	 * @return the idcity
	 */
	public int getIdcity() {
		return idcity;
	}


	/**
	 * @param idcity the idcity to set
	 */
	public void setIdcity(int idcity) {
		this.idcity = idcity;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Shipment [id=" + id + ", name=" + name
				+ ", description=" + description + ", address=" + address
				+ ", idcity=" + idcity + "]";
	}
	
	

}
